<?php

namespace App\Trip\Train\Seat;

class SeatType
{
    /**
     * 选座费
     * @param int $seat_type
     * @return float|int
     */
    static function selectFee(int $seat_type): float|int
    {
        $select_seats_fee = config('trip.train.select_seats_fee');
        $fee_types        = $select_seats_fee['seat_type'];
        return $fee_types[$seat_type]['default'] ?? 0;
    }
}